package routers

import (
	"giv-vue-blog/api"
	"giv-vue-blog/middleware"
)

func (router RouterGroup) TagRouter() {
	tagApi := api.ApiGroupApp.TagApi
	router.POST("tag", middleware.JwtAuth(), tagApi.TagAddView)
	router.GET("tag", middleware.JwtAuth(), tagApi.TagListView)
	router.DELETE("tag", middleware.JwtAdmin(), tagApi.TagDelView)
	router.PUT("tag/:id", middleware.JwtAuth(), tagApi.TagUpdateView)

}
